package com.moon.cloud.common.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * ID请求基类
 */
@Data
@Schema(description = "ID请求")
public class IdRequest<T> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    private T id;

    @Schema(description = "ID列表")
    private List<T> ids;

}
